﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObjects.BO_GetObjects;
using System.Data;

public partial class Controls_Ads : Base_Controls
{
    protected void Page_Load(object sender, EventArgs e)
    {

        this.Dislpay();

    }
    private void Dislpay()
    {
        try
        {
            DataTable objDt = BO_about_us.SelectTop(1,1);
            THUMB_IMG.Src = objDt.Rows[0]["THUMB_IMG"].ToString();
            SORT_NAME.InnerText = objDt.Rows[0]["SORT_NAME"].ToString();
            FULL_NAME.InnerText = objDt.Rows[0]["FULL_NAME"].ToString();
            string[] words= objDt.Rows[0]["BIRTH_DAY"].ToString().Split(' ');
            BIRTH_DAY.InnerText = words[0];
            BIRTH_PLACE.InnerText = objDt.Rows[0]["BIRTH_PLACE"].ToString();
            EMAIL.InnerText = objDt.Rows[0]["EMAIL"].ToString();
            if (Session["lgg"] == null)
            {
                ABOUT_DETAIL.InnerText = objDt.Rows[0]["ABOUT_DETAIL"].ToString();
            }
            else
            {
                if (Session["lgg"].ToString().Equals("eng"))
                {
                    ABOUT_DETAIL.InnerText = objDt.Rows[0]["ABOUT_DETAIL_ENG"].ToString();
                }
                else
                {
                    ABOUT_DETAIL.InnerText = objDt.Rows[0]["ABOUT_DETAIL"].ToString();
                }
            }
                
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}